<?php
/*

___Canvas Globals_______________________________________________

Canvas global variables and classes.

________________________________________________________________

*/


// Class and variable definitions
class importedFunction { // Used to store individual function data
	var $functionName;
	var $functionAuthor;
	var $functionUri;
	var $functionDesc;
	var $variables;
}
$zones = array();

// XML parsing variables
$current_function = "";
$current_variable = "";
$current_tag = "";

// Canvas tables
class canvas {
	var $main;
	var $variables;
	var $options;
}

$canvas = new canvas();
$canvas->main = $table_prefix . "canvas";
$canvas->variables = $table_prefix . "canvas_variables";
$canvas->options = $table_prefix . "canvas_var_options";
$canvas->zone_options = $table_prefix . "canvas_zone_options";

// Canvas paths
preg_match('/wp-content(.*)(canvas-globals\.php)$/',__FILE__,$canvaspath);
$canvaspath = str_replace('\\', '/', $canvaspath);
define(CANVASPATH, str_replace('/canvas-globals.php', '', str_replace('\\', '/', __FILE__)));
define(CANVASURI, get_bloginfo('wpurl').'/wp-content'.$canvaspath[1]);

?>